<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="zone.title"/></title>
    <meta name="heading" content="<fmt:message key='zone.title'/>"/>
    <meta name="menu" content="MainMenu"/>
</head>
<body class="home">

<h2><fmt:message key="zone.home"/></h2>

<div class="portlet-container" style="width:500px;">
			<div class="portlet-header">
				<div class="fltleft">
					<h3>Awaiting Approvals</h3>
				</div>
			</div>
			<div class="portlet-content">
					<display:table name="birthList" cellspacing="0" cellpadding="0" requestURI=""
                   defaultsort="1" id="births" pagesize="5" class="table table-condensed" export="true">
	        
	        <display:column property="motherName" escapeXml="true" sortable="true" titleKey="birth.motherName" style="width: 20%"
	                        url="/createBirth.action?from=dashboard" paramId="id" paramProperty="id"/>
	                        
	        <display:column property="fatherName" escapeXml="true" sortable="true" titleKey="birth.fatherName"
	                        style="width: 20%"/>
			<display:column property="status" escapeXml="true" sortable="true" title="Status"
	                        style="width: 10%"/>                        
	        <display:column property="sex" sortable="true" titleKey="birth.sex" style="width: 10%" autolink="true"
	                        media="html"/>
	        <display:column property="birthDate" sortable="true" titleKey="birth.birthDate" style="width: 25%" autolink="true"
	                        media="html"/> 
	
		</display:table>			
			</div>
		</div>
		
		<div class="portlet-container" style="width:500px;">
			<div class="portlet-header">
				<div class="fltleft">
					<h3>Recent Approvals</h3>
				</div>
			</div>
			<div class="portlet-content">
					<display:table name="approvedList" cellspacing="0" cellpadding="0" requestURI=""
                   defaultsort="1" id="births" pagesize="5" class="table table-condensed" export="true">
	        
	        <display:column property="motherName" escapeXml="true" sortable="true" titleKey="birth.motherName" style="width: 20%"
	                        url="/createBirth.action?from=dashboard" paramId="id" paramProperty="id"/>
	                        
	        <display:column property="fatherName" escapeXml="true" sortable="true" titleKey="birth.fatherName"
	                        style="width: 20%"/>
			<display:column property="status" escapeXml="true" sortable="true" title="Status"
	                        style="width: 10%"/>                        
	        <display:column property="sex" sortable="true" titleKey="birth.sex" style="width: 10%" autolink="true"
	                        media="html"/>
	        <display:column property="birthDate" sortable="true" titleKey="birth.birthDate" style="width: 25%" autolink="true"
	                        media="html"/> 
	
		</display:table>			
			</div>
		</div>
		
		<div class="portlet-container" style="width:500px;">
			<div class="portlet-header">
				<div class="fltleft">
					<h3>Recent Rejections</h3>
				</div>
			</div>
			<div class="portlet-content">
					<display:table name="rejectedList" cellspacing="0" cellpadding="0" requestURI=""
                   defaultsort="1" id="births" pagesize="5" class="table table-condensed" export="true">
	        
	        <display:column property="motherName" escapeXml="true" sortable="true" titleKey="birth.motherName" style="width: 20%"
	                        url="/createBirth.action?from=dashboard" paramId="id" paramProperty="id"/>
	                        
	        <display:column property="fatherName" escapeXml="true" sortable="true" titleKey="birth.fatherName"
	                        style="width: 20%"/>
			<display:column property="status" escapeXml="true" sortable="true" title="Status"
	                        style="width: 10%"/>                        
	        <display:column property="sex" sortable="true" titleKey="birth.sex" style="width: 10%" autolink="true"
	                        media="html"/>
	        <display:column property="birthDate" sortable="true" titleKey="birth.birthDate" style="width: 25%" autolink="true"
	                        media="html"/> 
	
		</display:table>			
			</div>
		</div>
</body>